<template>
  <div id="app">
    <router-view />
    <theme-picker />
  </div>
</template>

<script>
import ThemePicker from "@/components/ThemePicker";

export default {
  name: "App",
  components: { ThemePicker },
  metaInfo() {
    return {
      title: this.$store.state.settings.dynamicTitle && this.$store.state.settings.title,
      titleTemplate: title => {
        return title ? `${title} - ${process.env.VUE_APP_TITLE}` : process.env.VUE_APP_TITLE
      }
    }
  }
};
</script>
<style lang="scss">
#app .theme-picker {
  display: none;
}

body {
  padding: 0;
  margin: 0;
  overflow-y: auto !important;
}

// 滚动条样式
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
/*轨道颜色*/
::-webkit-scrollbar-track {
  background-color: transparent;
}

/*滑块颜色*/
::-webkit-scrollbar-thumb {
  border-radius: 7px;
  background-color: #45f4ff;
}

/*两端按钮*/
::-webkit-scrollbar-button {
  display: none;
}
</style>
